package com.jlkf.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jlkf.service.CarCaculationPointChargesService;
/**
 * 收费点
 * @author DN
 *
 */
@Controller
@RequestMapping("carCaculationPointCharges")
public class CarCaculationPointChargesController {

	@Autowired
	private CarCaculationPointChargesService carCaculationPointChargesService;
	
	//收费点列表
	@RequestMapping("getList")
	public Object getList(String pointChargesName,Integer pageNo,Integer pageSize,Integer type){
		return carCaculationPointChargesService.getList(pointChargesName, pageNo, pageSize,type);
	}
	
	@RequestMapping("addOrUpdate")
	public Object addOrUpdate(@RequestBody String json){
		return carCaculationPointChargesService.addOrUpdate(json);
	}
	
	@RequestMapping("del")
	public  Object del(Long id){
		return carCaculationPointChargesService.del(id);
	}
}
